package com.example.demo.services;

import com.example.demo.dao.UserDao;
import com.example.demo.model.UserModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    UserDao userDao;

    public UserModel userLogin(String account, String pass){
        return userDao.getUserInfoByAccountAndPass(account, pass);
    }

}
